package org.restorator.dao.implement.engin;

import org.restorator.dao.jdbc.RowMapper;
import org.restorator.entity.Category;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * @author Snisar Bogdan.
 */
public class CategoryMapper implements RowMapper<Category> {
    @Override
    public Category mapRow(ResultSet rs, int rowCount) throws SQLException {
        Category c = new Category();
        c.setCategoryId(rs.getInt(1));
        return c;  //To change body of implemented methods use File | Settings | File Templates.
    }
}
